package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.mapper.FlightMapper;
import cn.wolfcode.luowowo.article.query.FlightQuery;
import cn.wolfcode.luowowo.article.service.IFlightService;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class FlightServiceImpl implements IFlightService {
    @Autowired
    private FlightMapper flightMapper;
    @Override
    public PageInfo query(FlightQuery qo) {
        PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize());
        return new PageInfo(flightMapper.selectForList(qo));
    }
}
